import dashboard from '../views/dashboard/index.js'
import department from '../views/department/index.js'
import role from '../views/role/index.js'
import employees from '../views/employee/index.js'
import permission from '../views/permission/index.js'
import NotFound from '../views/NotFound/index.js'
import login from '../views/login/index.js'
import {
    AppstoreOutlined,
    ContainerOutlined,
    DesktopOutlined,
    MailOutlined,
    MenuFoldOutlined,
    MenuUnfoldOutlined,
    PieChartOutlined,
  } from '@ant-design/icons';
// 静态路由
export const routes = [
    {
        path: '/dashboard',
        name: 'dashboard',
        component: dashboard,
        meta: {
            title: '首页',
            icon: DesktopOutlined
        }
    },{
        path: '/login',
        name: 'login',
        component: login,
        hidden: true
    },{
        path: '/404',
        name: 'Not Found',
        component: NotFound,
        hidden: true
    }
]
// 动态路由
export const asyncRoutes = [
    {
        path: '/department',
        name: 'department',
        component: department,
        meta: {
            title: '组织',
            icon: ContainerOutlined
        }
    },{
        path: '/role',
        name: 'role',
        component: role,
        meta: {
            title: '角色',
            icon: MailOutlined
        }
    },{
        path: '/employees',
        name: 'employees',
        component: employees,
        meta: {
            title: '员工',
            icon: MenuFoldOutlined
        }
    },{
        path: '/permission',
        name: 'permission',
        component: permission,
        meta: {
            title: '权限',
            icon: MenuUnfoldOutlined
        }
    }
]
export const allRoutes = [...routes, ...asyncRoutes]